#ifndef __WORK_H
#define __WORK_H
#include "stm32f10x.h"
//编码



//节能开关
void EnergySavingSwitch(u8 flag);

//清除DI
s16 ClrDI(u8 address, u8 DIIndex);

//读取2S数据
s16 Get2S (u16 *databuffer, u8 address);
//读取空气温湿度
s16 GetTemHum (u16 *databuffer);
//读取土温数据
s16 GetSoilTemp(u16 *databuffer, u8 address);

//铜环采集
s16 GetFrequencyByID(u8 id, u8 f);

void WorkHandler(void);

void Sys_Standby(void);
#endif
